package com.info.zhiduoduo.repository.entity.crowdsource;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


@Data
@Accessors(chain = true)
@TableName("zdd_tax_payment_voucher")
public class TaxPaymentVoucher extends Model<TaxPaymentVoucher> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("凭证日期")
    @TableField("document_date")
    private String documentDate;

    @ApiModelProperty("税源地id")
    @TableField("tax_source_id")
    private Integer taxSourceId;

    @ApiModelProperty("运营主体id")
    @TableField("operating_entity_id")
    private Integer operatingEntityId;

    @ApiModelProperty("营业金额")
    @TableField("operating_amount")
    private BigDecimal operatingAmount;

    @ApiModelProperty("交税金额")
    @TableField("tax_amount")
    private BigDecimal taxAmount;

    @ApiModelProperty("完税凭证")
    @TableField("tax_payment_voucher")
    private String taxPaymentVoucher;

    @ApiModelProperty("是否删除 0否 1是")
    @TableField("is_delete")
    private int isDelete;

    @ApiModelProperty("创建时间")
    @TableField("createtime")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField("updatetime")
    private Date updateTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
